import { init } from 'echarts';

export const vChart = {
  mounted(el, binding) {
    const options = binding.value;
    const chart = init(el);
    chart.setOption(options);
  }
};
